package com.home.cop.sysinfo.model;

import java.util.Date;
import java.util.List;

public class Region implements Comparable<Region>{
    private String regionId;

    private String parRegionId;

    private String regionRouting;

    private Integer regionLevel;

    private String regionName;

    private String areaName;

    private String provinceName;

    private String cityName;

    private String districtName;

    private Date createTime;

    private List<Region> children;

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId == null ? null : regionId.trim();
    }

    public String getParRegionId() {
        return parRegionId;
    }

    public void setParRegionId(String parRegionId) {
        this.parRegionId = parRegionId == null ? null : parRegionId.trim();
    }

    public String getRegionRouting() {
        return regionRouting;
    }

    public void setRegionRouting(String regionRouting) {
        this.regionRouting = regionRouting == null ? null : regionRouting.trim();
    }

    public Integer getRegionLevel() {
        return regionLevel;
    }

    public void setRegionLevel(Integer regionLevel) {
        this.regionLevel = regionLevel;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName == null ? null : regionName.trim();
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName == null ? null : areaName.trim();
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName == null ? null : provinceName.trim();
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName == null ? null : cityName.trim();
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName == null ? null : districtName.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public List<Region> getChildren() {
        return children;
    }

    public void setChildren(List<Region> children) {
        this.children = children;
    }

    @Override
    public int compareTo(Region o) {
        return this.getRegionId().compareTo(o.getParRegionId());
    }
}